<!--<?php
print <<<EOT
-->
<div class="position"><span>当前位置:</span> {$_SYS['positionindex']} {$_SYS['positionforum']}</div>
{$adcode[3]}
<div style='display:none;'>{$forum['forumcontent']}</div>
<div class="div_out forum_top">
	<table class="title">
		<tr>
			<td class="left"></td>
			<td><span><a href="{$_SYS['forumurl']}">{$forum['forumname']}</a></span> - [ {$forum['topicsnum']} 主题 / {$forum['postsnum']} 帖子 ] </td>
			<td><a href="rss.php?fid={$fid}" class="rss" target="_blank">RSS</a></td>
			<td class="right"></td>
		</tr>
	</table>
	<div class="forum_top_out">
	<div class="forum_admins"><b>版主:</b> {$adminsstr} 
<!--
EOT;
if(isForumAdmin($fid)){
print <<<EOT
-->
			&nbsp;&nbsp;&nbsp;<span class="forum_adminlink"><a href="admin.php?fid={$fid}">管理面板</a></span>
<!--
EOT;
}
print <<<EOT
-->		
	</div>
<!--
EOT;
if(!empty($forum['rules'])){
print <<<EOT
-->
	
		<div class="forum_t">本版规则</div>
		<div class="forum_rules">{$forum['rules']}</div>		
<!--
EOT;
}
if(count($cache_forum['childfid'])>0){
print <<<EOT
-->
	<div class="forum_t">子版块</div>
	<div class="div_out_inner index_forum_2">
<!--
EOT;
		foreach($cache_forum['childfid'] as $cfid){
			$childforum=$cache_forums[$cfid];
			if($childforum['ishidden']=='1'){continue;}
			$lastuser=htmlFilter($childforum['lastuser']);
			$forumurl=genUrl("forum.php?fid={$cfid}");
			$viewurl=genUrl("view.php?tid={$childforum['lasttid']}");
			if($forum['showtype']=='0'){
				print<<<EOT
-->
			<table class="index_a3"><tbody><tr><td class="index_a3_0"><img src="{$childforum['forumicon']}" border="0" /></td><td class="index_a3_1"><b><a href="{$forumurl}">{$childforum['forumname']}</a></b> (今日: <b class="today">{$childforum['todaynum']}</b>)<p>{$childforum['forumcontent']}</p><p>版主: {$childforum['adminsstr']}</p></td><td width="140px" align="center"><span class="topicsnum">{$childforum['topicsnum']}</span> / {$childforum['postsnum']}</td><td width=""><a href="{$viewurl}">{$childforum['lastpost']}</a><br /><a href="user.php?username={$lastuser}">{$lastuser}</a> - <span class="time">{$childforum['lastposttime']}</span></td></tr></tbody></table>
<!--
EOT;
			}else{
				print<<<EOT
-->
			<div class="index_b"><table class="index_b3"><tbody><tr><td class="index_b3_0"><img src="{$childforum['forumicon']}" border="0" /></td><td class="index_b3_1"><b><a href="{$forumurl}">{$childforum['forumname']}</a></b> (今日: <b class="today">{$childforum['todaynum']}</b>)<br />主题:{$childforum['topicsnum']}  &nbsp;帖子:{$childforum['postsnum']}<br /><span class="lastpost">最后发表:<a href="{$viewurl}">{$lastuser}</a></span></td></tr></tbody></table></div>
<!--
EOT;
			}
		}
	print<<<EOT
-->
	<div class="div_clear"></div>
	</div>

<!--
EOT;
}

print <<<EOT
-->		
	</div>
</div>
<div class="div_clear" style="height:10px;"></div>
<div class="div_out forum_post">
	<table class="post"><tr><td class="left">
	<div class="post_drop"><ul><li><a href="post.php?fid={$fid}"><img src="{$_SYS['TP']}/images/btn_post.gif" border="0" align="absmiddle" alt="发表帖子" /><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul><li><a href="post.php?fid={$fid}"><i class="img_normal"></i> 话题</a></li><li><a href="post.php?fid={$fid}&topictype=1"><i class="img_vote"></i> 投票</a></li><li><a href="post.php?fid={$fid}&topictype=2"><i class="img_reward"></i> 悬赏</a></li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul></div>
	</td><td class="right">{$pager->getPageStr()}</td></tr></table>
</div>

<div class="div_out">
		<table class="forum_a1">
			<thead><tr><td width="30px">类型</td><td>标题 ( <a href="forum.php?fid={$fid}&orderby=replynum">热门</a> | <a href="forum.php?fid={$fid}&orderby=isgood">精华</a> | 时间: <a href="forum.php?fid={$fid}&orderby=lastreply&d=86400">天</a> <a href="forum.php?fid={$fid}&orderby=lastreply&d=604800">周</a> <a href="forum.php?fid={$fid}&orderby=lastreply&d=2592000">月</a> )</td><td width="120px" style="text-align:center;"><a href="forum.php?fid={$fid}&orderby=author">作者</a> / <a href="forum.php?fid={$fid}&orderby=posttime">时间</a></td><td width="100px" style="text-align:center;"><a href="forum.php?fid={$fid}&orderby=replynum">回复</a> / <a href="forum.php?fid={$fid}&orderby=hits">人气</a></td><td width="120px" style="text-align:right;"><a href="forum.php?fid={$fid}&orderby=lastreply">最后发表</a></td></tr></thead>
<!--
EOT;

if($curPage<=1){
	foreach($forum_ancarr as $announce){
	$userurl=genUrl("user.php?uid={$announce['userid']}");
print<<<EOT
-->
			<tbody><tr><td align="center"><a href="{$announce['anclink']}" target="_blank" title="公告" target="_blank"><img src="images/topic/announce.gif" border="0" /></a></td><td><a class="title" href="{$announce['anclink']}" target="_blank"><span style="color:{$announce['color']}">{$announce['title']}</span></a></td><td style="text-align:center;"><a href="{$userurl}" target="_blank">{$announce['username']}</a><br /><span class="time">{$announce['posttime']}</span></td><td style="text-align:center;">&nbsp;</td><td style="text-align:right;">&nbsp;</td></tr></tbody>
<!--
EOT;
	}
if($annouceNum>0){
print<<<EOT
-->
<tbody class="forum_split"><tr><td></td><td colspan=4>版块主题</td></tr></tbody>
<!--
EOT;
}
}

	foreach($topics as $topic){
print<<<EOT
-->
			<tbody><tr><td align="center"><a href="{$topic['viewurl']}" target="_blank" title="{$topic['icon'][1]}"><img src="images/topic/{$topic['icon'][0]}.gif" border="0" /></a></td><td><a class="title" href="{$topic['viewurl']}">{$topic['title']}</a> {$topic['addstr']}</td><td style="text-align:center;"><a href="{$topic['userurl']}" target="_blank">{$topic['username']}</a><br /><span class="time">{$topic['posttime']}</span></td><td style="text-align:center;"><span class="reply">{$topic['replynum']}</span> / {$topic['hits']}</td><td style="text-align:right;"><a href="user.php?username={$topic['topicuser']}">{$topic['topicuser']}</a><br /><span class="time">{$topic['topiclasttime']}</span></td></tr></tbody>
<!--
EOT;
	}
print<<<EOT
-->
		</table>
</div>
<div class="div_out forum_post">
	<table class="post"><tr><td class="left">
	<div class="post_drop"><ul><li><a href="post.php?fid={$fid}"><img src="{$_SYS['TP']}/images/btn_post.gif" border="0" align="absmiddle" alt="发表帖子" /><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul><li><a href="post.php?fid={$fid}"><i class="img_normal"></i> 话题</a></li><li><a href="post.php?fid={$fid}&topictype=1"><i class="img_vote"></i> 投票</a></li><li><a href="post.php?fid={$fid}&topictype=2"><i class="img_reward"></i> 悬赏</a></li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul></div>
	</td><td class="right">{$pager->getPageStr()}</td></tr></table>
</div>
{$adcode[2]}
<!--
EOT;
?>
-->